package me.hellp.helloworld.design.command;

/**
 * 调用者
 * 
 * @author linxm
 *
 */
public class MenuInvoker {
	private MenuCommand sysCom,useCom;
	
	//	设置命令
	public MenuInvoker(MenuCommand sysCom,MenuCommand useCom){
		this.sysCom = sysCom;
		this.useCom = useCom;
	}
	
	public void clickSysMenu(){
		sysCom.execute();
	}
	
	public void clickUseMenu(){
		useCom.execute();
	}
}
